import request from './request'

export const login = (params) => {
  return request({
    url: `login?username=${params.username}&password=${params.password}&captcha=${params.captcha}&IMGTEXT=${params.IMGTEXT}`,
    method: 'post'
  })
}

export const Captcha = () => {
  return request({
    url: '/login',
    method: 'GET'
  })
}
